<?php
/**
 * Created by PhpStorm.
 * User: 郑合达
 * Date: 2018/12/10
 * Time: 16:17
 */

namespace app\common\validate;


use think\Validate;

class Articlecategory extends Validate
{
    protected $rule = [
        'cat_name'                      => 'require',  //必填
        'sort_order'                    => 'number|between:0,50',

    ];

    protected $message = [
        'cat_name.require'                => '请填写分类名称',
        'sort_order.number'        => '排序值只能数字',
        'sort_order.between'                  => '排序值大于50',
    ];

}